package com.kxmall.admin.controller.vehicle.service;

import com.kxmall.common.core.domain.PageQuery;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.vehicle.domain.bo.KxVehicleBoxGoodsBo;
import com.kxmall.vehicle.domain.bo.KxVehicleInGoodsBo;
import com.kxmall.vehicle.domain.bo.WarningVehicleBo;
import com.kxmall.vehicle.domain.vo.KxVehicleBoxGoodsVo;

import java.util.Collection;
import java.util.List;

/**
 * 餐车商品Service接口
 */
public interface IKxVehicleGoodsService {

    /**
     * 查询餐车商品
     */
    KxVehicleBoxGoodsVo queryById(Long id);

    /**
     * 查询餐车商品列表
     */
    TableDataInfo<KxVehicleBoxGoodsVo> queryPageList(KxVehicleBoxGoodsBo bo, PageQuery pageQuery);

    /**
     * 查询餐车商品列表
     */
    List<KxVehicleBoxGoodsVo> queryList(KxVehicleBoxGoodsBo bo);

    /**
     * 新增餐车商品
     */
    Boolean insertByBo(KxVehicleInGoodsBo bo);

    /**
     * 修改餐车商品
     */
    Boolean updateByBo(KxVehicleInGoodsBo bo);

    /**
     * 校验并批量删除餐车商品信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 上下架
     * @param bo
     * @return
     */
    Boolean freezeOrActivation(KxVehicleInGoodsBo bo);


    /**
     * 逻辑删除
     */
    Boolean updateByVehicle(KxVehicleInGoodsBo bo);

    /**
     * 更新当前价格
     * @param bo
     * @return
     */
    Boolean updatePrice(KxVehicleInGoodsBo bo);

    /**
     * 查询告警分页
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<KxVehicleBoxGoodsVo> queryPageWarningList(WarningVehicleBo bo, PageQuery pageQuery);

    /**
     * 告警数量更新
     * @param bo
     * @return
     */
    Boolean warningUpdate(WarningVehicleBo bo);
}
